package iqq.ui.view;

import iqq.ui.view.frame.IQQFrame;

import javax.swing.JRootPane;

/**
 * 窗口创建工厂
 * 
 * @author ChenZhiHui
 * @create-time 2013-3-6
 */
public class ViewFactory {
	private static IQQFrame iQQFrame;

	public static IQQFrame getIQQFrame() {
		if (iQQFrame == null) {
			iQQFrame = new IQQFrame();
		}
		return iQQFrame;
	}

	public static JRootPane show(Class<? extends JRootPane> clazz) {
		return iQQFrame.show(clazz);
	}
}
